home *** CD-ROM | disk | FTP | other *** search
- ////////////////////////////////////////
- //Script for Titan1_DM AKA "A night'n Titan"
- /////////////////////////////////////////
-
- function setDefaultMissionOptions()
- {
- $server::TeamPlay = False; // for DM_ games
- }
-
-
- //If someone shoots frosty, his houses blow up revealing a nasty surprise
-
- //------------------------------------------------
- function tur1::turret::onAdd(%this)
- {
- $turret1=%this;
- order($turret1,ShutDown,true);
- }
- function tur2::turret::onAdd(%this)
- {
- $turret2=%this;
- order($turret2,ShutDown,true);
- }
-
-
- function Frosty::structure::onAttacked(%attacked,%attacker)
- {
- %bang1=getObjectId("MissionGroup\\extra\\frosty's house\\house1");
- healObject(%bang1,-30000);
- order($turret1,ShutDown,false);
- %bang2=getObjectId("MissionGroup\\extra\\frosty's house\\house2");
- order($turret1,ShutDown,false);
- healObject(%bang2,-30000);
- order($turret1,ShutDown,false);
- chat(%attacker,0,strcat("Don't Shoot Frosty!!"));
- if($server::TeamPlay)
- {
- if(getTeam($turret1)==getTeam(%attacker))
- {
- setTeam($turret1,1);
- setTeam($turret2,2);
- }
- }
- }
-